/*
 * @Description: 程序员类
 * 
 * @Author: rendc
 * 
 * @Date: 2025-08-01 09:59:49
 * 
 * @LastEditors: rendc
 * 
 * @LastEditTime: 2025-08-01 11:22:20
 */

public class Programmer extends Employee {

  // 属性 等级： 初级 中级 高级
  private String grade;
  {
  }

  // 无参构造器
  public Programmer() {
    // super();
  }

  // 全参构造器
  public Programmer(String id, String name, String grade) {
    super(id, name);
    this.grade = grade;
  }

  public String getGrade() {
    return grade;
  }

  @Override
  protected void doWork() {
    // TODO Auto-generated method stub
    // super.doWork();
    System.out.println("他是程序员，等级是" + grade);
  }

  // @Override
  // public void staticFun() {
  // }

  // @Override
  // The method privateFun() of type Programmer must override or implement a
  // supertype method
  // private void privateFun() {
  // }

  @Override
  public String toString() {
    // TODO Auto-generated method stub
    return "[程序员] 姓名：" + getName() + ",等级：" + grade;
  }

}